extends Talent

func init():
	name = "改良冷却"
func _connect():
	sys.main.connect("onBattleStart",self,"run5")
	sys.main.connect("onCharaNewChara", self, "onCharaNewChara")

func onCharaNewChara(cha):
	if cha.team == 1:
		cha.addBuff(b_gailianglengque.new(lv))	

func run5():
	for i in sys.main.btChas:
		if i.team == 1:
			i.addBuff(b_gailianglengque.new(lv))
#12 14 16 18 20
func get_info():
	return "我方所有角色(含召唤物)冷却速度提高%d%%"%[10+lv*2]

class b_gailianglengque extends "../../azurlane_ctrl/AzurBuff.gd":
	func _init(tlv):
		attInit()
		id = "b_gailianglengque"
		dispel = 2
		buffName = "改良冷却"
		att.cd = 0.1+tlv*0.02

